# Contributor: Edd Salkield <edd@salkield.uk>
# Maintainer: Edd Salkield <edd@salkield.uk>
pkgname=khinsider
pkgver=2.0.6
pkgrel=0
pkgdesc="A khinsider downloader written in Go"
url="https://github.com/marcus-crane/khinsider"
arch="all"
license="MIT"
makedepends="go"
source="https://github.com/marcus-crane/khinsider/archive/v$pkgver/khinsider-v$pkgver.tar.gz"
builddir="$srcdir/khinsider-$pkgver"
options="!check net"	# No upstream tests

prepare() {
	default_prepare
	go mod download
}

build() {
    go build
}

package() {
    install -Dm755 "$builddir"/khinsider "$pkgdir"/usr/bin/khinsider
}

sha512sums="
af8bfe3d17d07d8fd51caa01fc7b397be953cc801433905fbf37c4b2b44d8a90bfea388452081f57733dbfbd054e891e5bfe0bc7eca3a82026725a5b5ee0d0cb  khinsider-v2.0.6.tar.gz
"
